import React, { Component } from 'react'

export default class A extends Component {
  render() {
    return (
      <div>
        {/* 调用方法的同时并传参 */}A
        <button onClick={() => this.props.changeCount(1)}>+1</button>
      </div>
    )
  }
}
